<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"kelvinzhang.gitee.io","root":"/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="图片来自 泼辣有图">
<meta property="og:type" content="article">
<meta property="og:title" content="安利一个颜值最高的GitHub小程序">
<meta property="og:url" content="https://kelvinzhang.gitee.io/2019/09/21/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/index.html">
<meta property="og:site_name" content="猿创日记">
<meta property="og:description" content="图片来自 泼辣有图">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://kelvinzhang.gitee.io/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/cover.jpg">
<meta property="og:image" content="https://kelvinzhang.gitee.io/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-1.png">
<meta property="og:image" content="https://kelvinzhang.gitee.io/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-2.png">
<meta property="og:image" content="https://kelvinzhang.gitee.io/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-3.png">
<meta property="og:image" content="https://kelvinzhang.gitee.io/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-4.png">
<meta property="og:image" content="https://kelvinzhang.gitee.io/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-5.png">
<meta property="article:published_time" content="2019-09-21T12:22:33.000Z">
<meta property="article:modified_time" content="2021-08-26T11:56:30.573Z">
<meta property="article:author" content="Kelvin">
<meta property="article:tag" content="小程序">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://kelvinzhang.gitee.io/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/cover.jpg">

<link rel="canonical" href="https://kelvinzhang.gitee.io/2019/09/21/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>安利一个颜值最高的GitHub小程序 | 猿创日记</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">猿创日记</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>

  <a href="https://github.com/KelvinQQ" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://kelvinzhang.gitee.io/2019/09/21/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="Kelvin">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="猿创日记">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          安利一个颜值最高的GitHub小程序
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-09-21 20:22:33" itemprop="dateCreated datePublished" datetime="2019-09-21T20:22:33+08:00">2019-09-21</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2021-08-26 19:56:30" itemprop="dateModified" datetime="2021-08-26T19:56:30+08:00">2021-08-26</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E5%BC%80%E6%BA%90/" itemprop="url" rel="index"><span itemprop="name">开源</span></a>
                </span>
            </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <img src="/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/cover.jpg" class="">

<blockquote>
<p>图片来自 泼辣有图</p>
</blockquote>
<span id="more"></span>

<p>作为一个码农，平时少不了要逛一逛<code>GitHub</code>（一个号称全球最大的同性交友网站）。</p>
<p>作为一个代码托管网站，他早已经超出了他的职责。</p>
<p>我们可以找到一些需要用到的开源库；</p>
<p>我们可以看到一些组织/个人的技术分享文章；</p>
<p>我们可以找到一些有趣的收集资料；</p>
<p>…</p>
<p>但是，在这个移动设备如此受欢迎的今天，<code>GitHub</code>竟然没有推出<code>App</code>，就算是码农，也不能整天都带着电脑啊。</p>
<p>好在<code>GitHub</code>提供了<code>Open API</code>供大家使用，让程序猿们自己解决。今天就给大家安利一个<code>颜值最高的GitHub小程序    ———— Gitter</code>。</p>
<p>该小程序已经支持以下功能：</p>
<ol>
<li>实时查看<code>Trending</code></li>
<li>显示用户列表</li>
<li>仓库和用户的搜索</li>
<li>仓库：详情展示、<code>README.md</code>展示、<code>Star/Unstar</code>、<code>Fork</code>、<code>Contributors</code>展示、查看仓库文件内容</li>
<li>开发者：<code>Follow/Unfollow</code>、显示用户的<code>followers/following</code></li>
<li><code>Issue</code>：查看<code>issue</code>列表、新增<code>issue</code>、新增<code>issue</code>评论</li>
<li>分享仓库、开发者</li>
<li>…</li>
</ol>
<p>不过由于微信小程序的限制，无法做<code>OAuth</code>认证，所以想要登录自己的账户稍微有点复杂：</p>
<ol>
<li>跳转获取<code>Token</code>链接：<a target="_blank" rel="noopener" href="https://github.com/settings/tokens/new">https://github.com/settings/tokens/new</a>，并使用个人账户密码登录</li>
<li>填写一个标签，勾选自己想要授权的功能清单后并授权，就可以获得一个<code>Token</code></li>
<li>复制<code>Token</code>并填写到小程序中，即可登录个人账户</li>
</ol>
<p>作者本着开源的精神，将整个项目源码同时放在了<code>GitHub</code>中，供大家学习讨论。整个项目采用 <code>Taro</code> 框架 + <code>Taro UI</code> 进行开发，小程序内数据均来自于 <code>GitHub Api v3</code>。并写了一篇文章来记录该小程序的开发过程：<a target="_blank" rel="noopener" href="https://juejin.im/post/5c4c738ce51d4525211c129b">Gitter - 高颜值GitHub小程序客户端诞生记</a>，真的是可玩、可学。</p>
<p>说了这么多，赶紧放几张颜值照片上来：</p>
<img src="/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-1.png" class="">

<img src="/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-2.png" class="">

<img src="/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-3.png" class="">

<img src="/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-4.png" class="">

<p>是不是很清爽呢？那就长按识别一下下方的小程序码赶紧使用吧。</p>
<img src="/images/blog/%E5%AE%89%E5%88%A9%E4%B8%80%E4%B8%AA%E9%A2%9C%E5%80%BC%E6%9C%80%E9%AB%98%E7%9A%84GitHub%E5%B0%8F%E7%A8%8B%E5%BA%8F/xcx-5.png" class="">

<p>对了，还有作者<code>2k+</code>标星的<code>repo</code>：</p>
<blockquote>
<p><a target="_blank" rel="noopener" href="https://github.com/huangjianke/Gitter">https://github.com/huangjianke/Gitter</a></p>
</blockquote>
<p>啊啊啊</p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/%E5%B0%8F%E7%A8%8B%E5%BA%8F/" rel="tag"># 小程序</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2019/09/20/%E7%94%9F%E6%B4%BB%E4%B8%8D%E6%AD%A2%E7%9C%BC%E5%89%8D%E7%9A%84%E8%8B%9F%E4%B8%94%E8%BF%98%E6%9C%89%E8%AF%97%E5%92%8C%E8%BF%9C%E6%96%B9%E7%9A%84%E7%94%B0%E9%87%8E/" rel="prev" title="生活不止眼前的苟且还有诗和远方的田野">
      <i class="fa fa-chevron-left"></i> 生活不止眼前的苟且还有诗和远方的田野
    </a></div>
      <div class="post-nav-item"></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">Kelvin</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives">
          <span class="site-state-item-count">57</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
        <span class="site-state-item-count">11</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
        <span class="site-state-item-count">56</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/KelvinQQ" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;KelvinQQ" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:history_zq@163.com" title="E-Mail → mailto:history_zq@163.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Kelvin</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  

<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"log":false,"model":{"jsonPath":"live2d-widget-models\\packages\\live2d-widget-model-miku"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":true}});</script></body>
</html>
